package SchoolProject;

import SchoolProject.Main.Product.Product;
import SchoolProject.Main.Product.outputMethod;
import SchoolProject.Main.Product.inputMehod;

import java.io.IOException;
import java.util.Scanner;

public class APP
{
    public static void main(String[] args) throws IOException
    {
        int choice = 0;
        do
        {
            System.out.println("----------库存管理系统----------");
            System.out.println("----------Version 1.0----------");
            System.out.println("-----------1.列表管理-----------");
            System.out.println("-----------2.入站管理-----------");
            System.out.println("-----------3.出站管理-----------");
            System.out.println("-----------0.退出系统-----------");
            System.out.print("请输入你的选择>>>");
            choice = new Scanner(System.in).nextInt();
            switch (choice)
            {
                case 1:
                    Product.menu();
                    break;
                case 2:
                    inputMehod.menu();
                    break;
                case 3:
                    outputMethod.menu();
                    break;
                case 0:
                    System.out.println("bye~");
                    break;
                default:
                    System.out.println("输入错误 请重新输入");
            }



        }while(choice != 0);

    }
}
